from sympy import det, Matrix

if __name__ == '__main__':
    # 定义一个 2x2 矩阵
    matrix = Matrix([[1, 2], [3, 4]])
    print(det(matrix))
